package com.wuzhun.wxmp.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wuzhun.wxmp.model.dto.MessageDTO;
import com.wuzhun.wxmp.model.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 文章表 服务类
 * </p>
 *
 * @author Paulin
 * @since 2023-05-31
 */
public interface IMessageService extends IService<Message> {
    /**
     * 分页查询消息内容
     *
     * @param pageMessage
     * @param queryWrapper
     * @return
     */
    Page<MessageDTO> listByPage(Page<Message> pageMessage, QueryWrapper<Message> queryWrapper);

    /**
     * 查询消息详情
     *
     * @param id
     * @return
     */
    MessageDTO queryOne(Integer id);
    /**
     * 根据条件查询消息内容
     *
     * @param queryWrapper
     * @return
     */
    List<MessageDTO> queryListWrapper(QueryWrapper<Message> queryWrapper);

}
